import type { JSX } from "react";

// 类型定义
export interface Friend {
  id: string;
  name: string;
  avatar: string;
}

export interface Group {
  id: string;
  name: string;
  members: Friend[];
  avatar: string;
}

export interface Message {
  id: string;
  sender: Friend;
  content: string | JSX.Element;
  time: string;
  type: "text" | "image" | "voice" | "emoji";
  isMine: boolean;
}
